package gamagora.game.world.maps.game
{
	import gamagora.game.entity.*;
	import gamagora.game.world.maps.OSMap;

	public class OSMap45 extends OSMap
	{
		public function OSMap45()
		{
			super();

			var ground:OSGround = new OSGround(0, 1060, 960, 20, 0, false);
			var entity:OSEntity = new OSEntity(NOTHING);
			
			ground.setNoErosionUp([21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47]);
			ground.setNoErosionDown([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47]);
			ground.setNoErosionLeft([0]);
			ground.setNoErosionRight([47]);
			ground.erode();
			add(ground);

			ground = new OSGround(430, 830, 200, 20, 0, true);
			ground.setBorders(true, true);
			add(ground);

			ground = new OSGround(420, 1000, 220, 60, 0, false);
			ground.setNoErosionUp([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]);
			ground.setNoErosionDown([22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32]);
			ground.erode();
			add(ground);

			ground = new OSGround(440, 840, 20, 20, 0, false);
			ground.erode();
			add(ground);
			
			entity = new OSEntity(OSEntity.NOTHING, 440, 840);
			entity.makeGraphic(20, 500, 0xff221100);
			addBackground(entity);

			add(new OSStall(440, 980, 20, 4, 10));

			ground = new OSGround(600, 840, 20, 20, 0, false);
			ground.erode();
			add(ground);
			
			entity = new OSEntity(OSEntity.NOTHING, 600, 840);
			entity.makeGraphic(20, 500, 0xff221100);
			addBackground(entity);

			ground = new OSGround(700, 940, 120, 120, 0, false);
			ground.setNoErosionDown([30, 31, 32, 33, 34, 35]);
			ground.setNoErosionRight([5, 11, 17, 23, 29, 35]);
			ground.erode();
			add(ground);

			ground = new OSGround(820, 640, 140, 420, 0, false);
			ground.setNoErosionDown([140, 141, 142, 143, 144, 145, 146]);
			ground.setNoErosionLeft([105, 112, 119, 126, 133, 140]);
			ground.setNoErosionRight([6, 13, 20, 27, 34, 41, 48, 55, 62, 69, 76, 83, 90, 97, 104, 111, 118, 125, 132, 139, 146]);
			ground.erode();
			add(ground);

		}
	}
}
